Skip to content

Conversation

@MichaelOrlov
Copy link
Contributor

Description

This PR addresses the C++ Recorder failure on stop() -> record() due to reusing the bag name.

Is this user-facing behavior change?

Yes.

  • This PR introduces an optional uri parameter for the Recorder::record() API. If provided, it will override the storage_options.uri provided during construction.
  • If the storage_options.uri already exists at the time when calling Recorder::record() the recorder will try to derive an alternative name by adding (n) prefix. i.e. storage_options.uri + "(n)". Where n will be tried from 1 to the std::numeric_limits<size_t>::max().

Did you use Generative AI?

Yes, I am using GitHub Copilot, GPT-5 to help with Doxygen comments and tests.

Additional Information

Potentially can be backported

@MichaelOrlov MichaelOrlov changed the title Morlov/bugfix for recorder start stop start again Bugfix for C++ Recorder failure on stop() -> record() due to reusing the bag name Nov 8, 2025
@MichaelOrlov MichaelOrlov marked this pull request as ready for review November 8, 2025 23:53
@MichaelOrlov MichaelOrlov changed the title Bugfix for C++ Recorder failure on stop() -> record() due to reusing the bag name Fix for C++ Recorder failure on stop() -> record() due to reusing the bag name Nov 11, 2025
Note: if provided optional parameter uri, it will override the
 storage_options.uri provided during construction.
Signed-off-by: Michael Orlov <[email protected]>
@MichaelOrlov MichaelOrlov force-pushed the morlov/bugfix-for-recorder-start-stop-start-again branch from d19b762 to 320edba Compare November 13, 2025 19:14
@MichaelOrlov
Copy link
Contributor Author

@christophebedard @fujitatomoya @emersonknapp A friendly ping for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C++ Recorder fails on stop() -> record() due to reusing bag name

2 participants